/*
 * Copyright (c) JoinQuant Development Team
 * Author: Huayong Kuang <kuanghuayong@joinquant.com>
 *
 */

#include <iostream>
#include <vector>

using namespace std;

typedef struct {
    char name[20];
    int age;
} Person;


typedef vector<Person> VP;


void test(int a, const VP &b=VP()) {
    cout << a << endl;
    cout << b.size() << endl;
}



int main(void)
{
    vector<int> arrI;
    arrI.reserve(10);

    cout << "size: " << arrI.size() << endl;

    for (auto &itr : arrI) {
        cout << itr << endl;
    }

    arrI.push_back(5);
    for (auto &itr : arrI) {
        cout << itr << endl;
    }

    test(111);

    return 0;
}

